//
//  ZLWCollectionViewCell.m
//  EPA
//
//  Created by lanou3g on 16/4/19.
//  Copyright © 2016年 zlw. All rights reserved.
//

#import "ZLWCollectionViewCell.h"
#import "UIImageView+WebCache.h"
@interface ZLWCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@end

@implementation ZLWCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}
- (void)setModel:(ZLWHomeModel *)model
{
    if (_model != model) {
        _model = model;
    }
}

-(void)layoutSubviews
{
    self.titleLable.text = self.model.name;
   
    
    [self.imageView setImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.model.coverimg]]]];
     
    
    
    
  
    
}

@end
